﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class teacher:Person
    {
        public string Title { get; set; }
        public int Wageno { get; set; }
        public teacher(string name, int id, string sex, int cardid, int tel, string title, int wageno)
        {
            this.Name = name;
            this.ID = id;
            this.Sex = sex;
            this.Cardid = cardid;
            this.Tel = tel;
            this.Title = title;
            this.Wageno = wageno;
        }
        public void EoL2()
        {
            Console.WriteLine("教师ID为：{0}，姓名为：{1}，性别为：{2}，身份证号为：{3}，联系方式：{4}，职称：{5}，工资号：{6}", this.ID, this.Name, this.Sex, this.Cardid, this.Tel, this.Title, this.Wageno);
        }
    }
}
